#pragma once
#include <vector>
#include <cstdint>
#include "props.h"
#include "convert.h"

namespace eintik::data::scan {

struct AScan
{
    struct Coord
    {
        double x;
        double y;
    };

    void set_ratio(double ratio)
    {
        this->ratio = ratio;
    }

    void add_frame(const std::vector<int16_t> &frame)
    {
        this->frame = frame;
    }

    std::vector<Coord> frame_a(int id);
    std::vector<int16_t> frame_a_raw(int id);
    std::vector<Coord> frame_a_abs(int id);

private:
    std::vector<int16_t> frame;
    double ratio = 4096;
};

}